package Gather.Advanced.哈希值.TreeSetLearn;

import java.util.TreeSet;

public class Learn {
    public static void main(String[] args) {
        //利用TreeSet进行存储数组排序

        TreeSet<Integer> tree=new TreeSet<>();

        tree.add(3);
        tree.add(353);
        tree.add(22);
        tree.add(323);

        System.out.println(tree);

        for (Integer integer : tree) {
            System.out.println(integer);
        }
    }
}
